<!DOCTYPE html>  
<html>  
  <head>  
    <title>try…catch</title>  
  </head>
  <body>  
    <script type="text/javascript">
      try {
        var myNumbers = [1, 2, 3];
        document.write(my+"<br>");
        document.write("coding man<br>");
        
      } catch (e) {
        document.write("Something went wrong.<br>");
      } finally {
        document.write("The 'try catch' is finished.");
      }
    </script> 
  </body>  
</html>